* configure.in: Use AC_HAVE_HEADERS to test for sys/time.h, and
authorJim Blandy <jimb@redhat.com>
Tue, 4 May 1993 14:17:07 +0000 (14:17 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 4 May 1993 14:17:07 +0000 (14:17 +0000)
call AC_STRUCT_TM to see what's in time.h.

* configure.in: Employ quoting stupidity to get the value of CPP
to expand properly.

configure1.in

index b642840db07b2613e9b184f651675f8d66ff1f8a..1a3915b019dee8c7b977c3da5c7e0e9dc1e3a9fe 100755 (executable)
@@ -817,10 +817,11 @@ fi
 #### Some other nice autoconf tests.
 ]
 AC_PROG_CPP
-AC_HAVE_HEADERS(sys/timeb.h)
+AC_HAVE_HEADERS(sys/timeb.h sys/time.h)
 AC_RETSIGTYPE
 AC_ALLOCA
 AC_HAVE_FUNCS(gettimeofday gethostname dup2)
+AC_STRUCT_TM
 AC_CONST
 [
 
@@ -942,7 +943,10 @@ echo '
 @configure@ system_malloc=no
 #endif
 ' > ${tempcname}
-eval `${CPP} ${tempcname} \
+# The value of CPP is a quoted variable reference, so we need to do this
+# to get its actual value...
+foo=`eval "echo $CPP"`
+eval `${foo} ${tempcname} \
        | grep '@configure@' \
        | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
 rm ${tempcname}